// insert, max size <= 16MB

// simple document
db.foo.insert({
	"bar" : "baz"
})

// simple array
db.foo.insert({
	"_id" : "2",
	"plays" : [ "cricket", "tennis", "basketball" ]
})

// nested document
db.foo.insert({
	"_id" : "3",
	"likes" : {
		"fruits" : [ "grape", "watermelon" ],
		"color" : "red"
	}
})

// document array
db.foo.insert({
	"_id" : "4",
	"scores" : [ {
		"english" : 10
	}, {
		"maths" : 20
	}, {
		"science" : 30
	} ]
})

// complex document
db.foo.insert({
	"_id" : "0",
	"name" : "student1",
	"plays" : [ "cricket", "tennis", "basketball" ],
	"likes" : {
		"fruits" : [ "grape", "watermelon" ],
		"color" : "red"
	},
	"scores" : [ {
		"english" : 10
	}, {
		"maths" : 20
	}, {
		"science" : 30
	} ],
	"weight" : 101
})

// batch insert, multiple documents, max size <= 48MB
db.foo.insert([ {
	"_id" : 0
}, {
	"_id" : 1
}, {
	"_id" : 2
} ])
